home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _231951B485BD4028BD61E5AFB1535F28 < prev    next >
Encoding:
Text File  |  2004-07-20  |  6.0 KB  |  246 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $BROKEN
  6. // $BROKENOPTIONSFILE
  7. // $NORMALS
  8. // $NORMALSOPTIONSFILE
  9. // $SPECPOW
  10.  
  11. Shader()
  12. {
  13.     ShaderQuality(5)
  14.     Pass()
  15.     {
  16.         // lighting()
  17.         VertexShader("CarLB_CmCd_Bump_ps20.vsh")
  18.         Pixelshader("CarLB_CmCd_Bump_ps20.psh")
  19.  
  20.         !include("__Tex1.mtt")
  21.         !include("__Dirt.mtt")
  22.         !include("__CloudsVS.mtt")
  23.         !include("__TerrainColormapVS.mtt")
  24.         !include("__DynamicCubeMap.mtt")
  25.         !include("__DirtNormalsMap.mtt")
  26.         !include("__Broken.mtt")        
  27.  
  28.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // RGB - lights state, A - dirt level
  29.     }
  30.     Cull("cw")
  31. }
  32.  
  33. shader()
  34. {
  35.     ShaderQuality(3)
  36.     pass()
  37.     {
  38.         //Lighting()
  39.         Pixelshader("CarLB_CmCd_ps14.psh")
  40.         Vertexshader("CarLB_CmCd_ps14.vsh")
  41.  
  42.         !include("__tex1.mtt")
  43.         !include("__Dirt.mtt")
  44.         !include("__TerrainColormapVS.mtt")
  45.         !include("__CloudsVS.mtt")
  46.         !include("__DynamicCubeMap.mtt")
  47.         !include("__Broken.mtt")        
  48.  
  49.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  50.     }
  51.     Cull("cw")
  52. }
  53.  
  54. shader()
  55. {
  56.     ShaderQuality(2)
  57.     pass()
  58.     {
  59.         Pixelshader("CarBR_Cm_ps11.psh")
  60.         Vertexshader("CarBR_Cm_ps11.vsh")
  61.  
  62.         !include("__tex1.mtt")
  63.         !include("__Dirt.mtt")
  64.         !include("__TerrainColormapSmallVS.mtt")
  65.         !include("__DynamicCubeMap.mtt")        
  66.  
  67.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  68.     }
  69.     pass()
  70.     {
  71.         //Lighting()
  72.         Pixelshader("CarLB_pass2_ps11.psh")
  73.         Vertexshader("CarLB_pass2_ps11.vsh")
  74.  
  75.         !include("__Broken.mtt")
  76.         !include("__TerrainColormapSmallVS.mtt")        
  77.  
  78.         BlendFunc("src_alpha", "inv_src_alpha")
  79.     }
  80.  
  81.     Cull("cw")
  82.  
  83. shader()
  84. {
  85.     ShaderQuality(1)
  86.     pass()
  87.     {
  88.         Pixelshader("CarLB_ps11.psh")
  89.         Vertexshader("CarLB_ps11.vsh")
  90.  
  91.         !include("__tex1.mtt")
  92.         !include("__Dirt.mtt")
  93.         !include("__TerrainColormapSmallVS.mtt")
  94.         !include("__Broken.mtt")        
  95.  
  96.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  97.     }
  98.     Cull("cw")
  99. }
  100.  
  101. //=========================== GF2 ======================================
  102. shader()
  103. {
  104.     ShaderQuality(2)
  105.     pass()
  106.     {
  107.         Lighting()
  108.         tmu()
  109.         {
  110.             TexGen("planar")
  111.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  112.             texture()
  113.             {
  114.                 Image(%colortexturesmall)
  115.                 addressfunc("clamp", "clamp", "clamp")
  116.             }
  117.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  118.             AlphaOp("arg1", "texture_a", "current", "current")
  119.         }
  120.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  121.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  122.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  123.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  124.         SpecularPow(0.0)
  125.                
  126.     }
  127.     lightpass()
  128.     !include("spot_spotmap.mtt")
  129.  
  130.     pass()
  131.     {
  132.         Lighting()
  133.         tmu()
  134.         {
  135.             Texture()
  136.             {
  137.                 Mapchannel(0)
  138.                 Image(DIRT_GF2)
  139.                 !include(DIRTOPTIONSFILE)
  140.             }
  141.             ColorOp("arg1", "tfactor", "current", "current")
  142.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  143.         }
  144.         tmu()
  145.         {
  146.             Texture()
  147.             {
  148.                 Mapchannel(0)
  149.                 Image(TEXTURE1)
  150.                 !include(TEX1OPTIONSFILE)
  151.             }
  152.             ColorOp("blend_current_alpha", "current", "texture", "current")
  153.         }
  154.  
  155.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  156.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  157.    
  158.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  159.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  160.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  161.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  162.         SpecularPow(SPECPOW)                
  163.  
  164.         BlendFunc("zero", "src_color")
  165.     }
  166.     pass()
  167.     {
  168.         Lighting()
  169.         tmu()
  170.         {
  171.             TexGen("planar")
  172.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  173.             texture()
  174.             {
  175.                 Image(%colortexturesmall)
  176.                 addressfunc("clamp", "clamp", "clamp")
  177.             }
  178.             ColorOp("mul_add", "current", "texture_a", "diffuse_a")
  179.             //AlphaOp("add", "texture_a", "diffuse_a", "current")
  180.         }
  181.         tmu()
  182.         {
  183.             Texture()
  184.             {
  185.                 Mapchannel(0)
  186.                 Image(BROKEN)
  187.                 !include(BROKENOPTIONSFILE)
  188.                 !include("__TO_Clamp&Linear.mtt")
  189.                 //!include("__TO_LODBias-100.mtt")
  190.             }
  191.             ColorOp("mul", "current", "texture", "current")
  192.             AlphaOp("arg1", "texture_a", "current", "current")
  193.         }    
  194.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  195.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  196.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  197.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  198.         SpecularPow(0.0) 
  199.         BlendFunc("src_alpha", "inv_src_alpha")
  200.     }    
  201.  
  202.     Cull("cw")
  203. }
  204. //=======================================================
  205. /*
  206. shader()
  207. {
  208.     ShaderQuality(0)
  209.     pass()
  210.     {
  211.         Lighting()
  212.         Pixelshader("CarLB_sq0.psh")
  213.         Vertexshader("Common_specular.vsh")
  214.         !include("__tex1.mtt")
  215.         !include("__Broken.mtt")        
  216.     }
  217.     Cull("cw")
  218. }
  219. */
  220.  
  221. shader()
  222. {
  223.     ShaderQuality(0)
  224.     pass()
  225.     {
  226.         Lighting()
  227.         !include("__tex1.mtt")
  228.  
  229.         !include("__LightningColorsSpecGF2.mtt")  
  230.     }
  231.     pass()
  232.     {
  233.         Lighting()
  234.         !include("__Broken.mtt")
  235.  
  236.         !include("__LightningColorsSpecGF2.mtt")  
  237.         BlendFunc("src_alpha", "inv_src_alpha")
  238.     }
  239. //    lightpass()
  240. //    !include("spot_spotmap.mtt")    
  241.  
  242.     Cull("cw")
  243. }
  244.  
  245.